import 'dart:async';

import 'package:example/app/data/model/article_bean.dart';
import 'package:example/app/utils/third_app_utils.dart';
import 'package:example/index.dart';
class ArticleDetailController extends GetxController{


  final RxBool _canGoBack = false.obs;
  bool get canGoBack => _canGoBack.value;
  set canGoBack(val) => _canGoBack.value = val;


  final RxBool _canGoForward = false.obs;
  bool get canGoForward => _canGoForward.value;
  set canGoForward(val) => _canGoForward.value = val;

  late final ArticleBean articleBean;
  late final WebViewController webViewController;
  final Completer<bool> finishedCompleter = Completer();

  late final Future canOpenAppFuture;

  @override
  void onInit() {
    super.onInit();
    articleBean = Get.arguments as ArticleBean;
    canOpenAppFuture = ThirdAppUtils.canOpenApp(articleBean.link);
  }

}
